<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

$quantity_in_stock = ps_product::get_field( $product_id, 'product_in_stock');

if( CHECK_STOCK == '1' && ( $quantity_in_stock < 1 ) ) {
	$button_lbl = $VM_LANG->_('VM_CART_NOTIFY');
	$button_cls = 'notify_button_module';
	$notify = true;
} else {
	$button_lbl = $VM_LANG->_('PHPSHOP_CART_ADD_TO');
	$button_cls = 'addtocart_button_module';
	$notify = false;
}

?>

<!-- The product name DIV. -->

<div class="feture-img">
	<a title="<?php echo $product_name ?>" href="<?php echo $product_link ?>">
    <?php
		// Print the product image or the "no image available" image
		echo ps_product::image_tag( $product_thumb_image, "alt=\"".$product_name."\"");
	?>
    </a>
</div>
<div id="product-detail">
    <h2><?php echo $product_name; ?></h2>
    <p><?php echo $product_desc; ?></p>
    <input type="button" value="Shop Now" onClick="javascript:location.href='<?php echo $product_link ?>'" />
</div>

